<?php
/*
	挪车卡设置
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
if($_RQ['op']=='main'){
	if($_RQ['postdata']){
		$post=get_postdata();
		
		$this->plugin_setting('card',$post);
		exi('设置成功！');
	}
	$setting=$this->plugin_setting('card');
	$return['item']=$setting;
	$return['htmls']=array(
		'type'=>'edit',
		'edit'=>array(
			array('type'=>'string','name'=>'price','title'=>'挪车卡价格','help'=>'设置用户申请挪车卡需要支付的费用'),
			array('type'=>'image','name'=>'bind_pic','title'=>'绑定图文图片','help'=>''),
			array('type'=>'switch','name'=>'check_mobile','title'=>'激活挪车卡时是否验证手机号','help'=>''),
			array('type'=>'image','name'=>'move_pic','title'=>'挪车图文图片','help'=>''),
			array('type'=>'string','name'=>'number_num','title'=>'用户码位数','help'=>''),
			array('type'=>'string','name'=>'number_pre','title'=>'挪车码前缀','help'=>'默认“NC”'),
		),
	);
	$return['types']=array(
		'1'=>'模版消息+短信',
		'2'=>'模版消息+语音',
	);
	exi($return);
}